package cc.openhome;
import java.util.*;
public class guess {
    public static void main(String[] args) {
        Scanner scanner =new Scanner(System.in);
        int number =(int)(Math.random()*10);
        int guess;
        do{
            System.out.println("输入数字:");
            guess=scanner.nextInt();
        }
        while (guess!=number);
        System.out.println("猜中了");
    }
}
